<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="com.ubst.smartad.env.*" %>
<%@page import="com.ubst.smartad.session.*" %>
<%@page import="com.ubst.smartad.logger.Debug" %>

<%@include file="/jsp/inc/base.jsp"%>
<jsp:useBean id="tem" class="com.ubst.smartad.template.Template" scope="page"/>
<%
    
	String algorithm =  fhostEnv.getSymAlg();
    int algorithmB =  fhostEnv.getSymAlgBit();
    if(algorithm==null && algorithm.equals("") ){
		algorithm = "NONE";
		algorithmB = 0;
	}
    session.setAttribute("jxblockcipheralg",algorithm);
    session.setAttribute("jxblockcipheralgB",String.valueOf(algorithmB));

	/**
	 *
	 * login_type  0:일반로그인, 1:인증서로그인, 2:일반로그인+인증서로그인
	 *
	 **/
	if(login_type.equals("1")){ // 인증서 로그인
	}else if(login_type.equals("2")){ // 일반로그인+인증서로그인
	}else{	// 일반로그인
	    tem.setFileText( web_root+"skin1/admin/login/login_index.html");
	}

	if( session_userid != null && !session_userid.equals("") ) {
		SessionChecker.deleteSession(session_userid);
	}

	tem.setReplaceKey("{SESSION_ID}", session.getId());

	// 텍스트 파일 출력
	tem.setReplaceKey("{LOGO_TEXT}", i18n_bundle.getString("login_index.jsp.logotitle"));
	tem.setReplaceKey("{ID_TEXT}", i18n_bundle.getString("login_index.jsp.id"));
	tem.setReplaceKey("{PW_TEXT}", i18n_bundle.getString("login_index.jsp.pw"));
	tem.setReplaceKey("{LOGIN_TEXT}", i18n_bundle.getString("login_index.jsp.login"));
	tem.setReplaceKey("{REQUIRED_ID_TEXT}", i18n_bundle.getString("login_index.jsp.requiredid"));
	tem.setReplaceKey("{REQUIRED_PW_TEXT}", i18n_bundle.getString("login_index.jsp.requiredpw"));

%>
<%@include file="/jsp/inc/out.jsp"%>
<%@include file="/jsp/inc/hidden.jsp"%>